﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><#if isAddAction>添加<#else>编辑</#if>仪器信息</title>
<#include "/admin/common_css.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.tools.minfull.js"></script>
<script type="text/javascript">
$(function() {
$("#validateForm").validator();
});
</script>
</head>
<body class="input">
	<div class="bar">
		<#if isAddAction>添加仪器信息<#else>编辑仪器信息</#if>
	</div>
	<div id="validateErrorContainer" class="validateErrorContainer">
		<div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
		<ul></ul>
	</div>
	<div class="body">
		<form novalidate id="validateForm" enctype="multipart/form-data" action="${base}/faith/device/<#if isAddAction>save<#else>update</#if>" method="post">
			<input type="hidden" name="id" value="${(deviceInfo.id)!}" />
			<input type="hidden" name="member.id" value="${(deviceInfo.member.id)!}" />
			<table class="inputTable">
				<tr>
					<th>
						资产编号: 
					</th>
					<td>
						<input type="text" name="classifyId" class="formText" value="${(deviceInfo.classifyId)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						分类代码: 
					</th>
					<td>
						<input type="text" name="classifyName" class="formText" value="${(deviceInfo.classifyName)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						资产名称: 
					</th>
					<td>
						<input type="text" name="propertyName" class="formText" value="${(deviceInfo.propertyName)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						共享模式:
					</th>
					<td>
						<select name="isShared">
							<option value="1" <#if deviceInfo != null&&deviceInfo.isShared == 1> selected</#if>>
								共享
							</option>
							<option value="2" <#if deviceInfo != null&&deviceInfo.useStatus == 2> selected</#if>>
								所内共享
							</option>
							<option value="3" <#if deviceInfo != null&&deviceInfo.useStatus == 3> selected</#if>>
								专用
							</option>
						</select>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						存放地点: 
					</th>
					<td>
						<input type="text" name="location" class="formText" value="${(deviceInfo.location)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						规格型号: 
					</th>
					<td>
						<input type="text" name="specificationType" class="formText" value="${(deviceInfo.specificationType)!}" required="required"/>
					</td>
				</tr>
				<tr>
					<th>
						测定指标: 
					</th>
					<td>
						<input type="text" name="metric" class="formText" value="${(deviceInfo.metric)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>				
				<tr>
					<th>
						仪器使用部门: 
					</th>
					<td>
						<input type="text" name="deviceDpt" class="formText" value="${(deviceInfo.deviceDpt)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						仪器使用人: 
					</th>
					<td>
						<input type="text" name="assetsUser" class="formText" value="${(deviceInfo.assetsUser)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						仪器管理部门: 
					</th>
					<td>
						<input type="text" name="deviceMgrDpt" class="formText" value="${(deviceInfo.deviceMgrDpt)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						仪器管理人: 
					</th>
					<td>
						<input type="text" name="assetsAdmin" class="formText" value="${(deviceInfo.assetsAdmin)!}" required="required"/>
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						按时间测试成本: 
					</th>
					<td>
						<input type="text" name="timeCost" class="formText" value="${(deviceInfo.timeCost)!}" />元/小时
					</td>
				</tr>
				<tr>
					<th>
						按样品个数测试成本: 
					</th>
					<td>
						<input type="text" name="countCost" class="formText" value="${(deviceInfo.countCost)!}" />元/个
					</td>
				</tr>
				<tr>
					<th>
						仪器图片: 
					</th>
					<td>
						<input type="file" name="file" /><#if deviceInfo != null><#if deviceInfo.imagePath != null><#else>您还没有上传图片</#if></#if>
					</td>
				</tr>
			</table>
			<div class="buttonArea">
				<input type="submit" class="formButton" value="确  定" hidefocus />&nbsp;&nbsp;
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus />
			</div>
		</form>
	</div>
</body>
</html>